/**
 * 
 */
package acmCoder.ctrip;

/**
 * @author zhongfang
 *
 */
public class test4 {
	private static int getMid(int[] a, int aStart, int b[], int bStart, int len) {
		if (len == 1)
			return a[0];
		int mid = len / 2;
		if (a[mid] == b[mid])
			return a[mid];
		if (a[mid] < b[mid]) {
			return getMid(a, aStart + mid, b, bStart, len - mid);
		} else {
			return getMid(a, aStart, b, bStart + mid, len - mid);
		}
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
